/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Game.bc;

import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;

/**
 *
 * @author ashish.vaidya
 */
@WebService()
@Stateless()
public class GetWordService {
    @EJB
    private WordFactoryLocal ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

   /* @WebMethod(operationName = "loadWords")
    public void loadWords() throws Exception {
        ejbRef.loadWords();
    }*/

    @WebMethod(operationName = "getWord")
    public String getWord(@WebParam(name = "wordLength")
    int wordLength) throws Exception {
        return ejbRef.getWord(wordLength);
    }

}
